﻿@model Irandeb4.Models.User

@{
    ViewBag.Title = "Details";
}

<h2>Ver Usuario</h2>

<fieldset>
        <legend>Datos</legend>
            <fieldset>
                <legend>Informacion Cuenta</legend>
                <table>
                    <tr>
                        <td class="display-label">Nombre Usuario:</td>
                        <td class="display-field">
                            @Html.DisplayFor(model => model.UserName)
                        </td>
                    </tr>
                    <tr>
                        <td class="display-label">Email:</td>
                        <td class="display-field">
                            @Html.DisplayFor(model => model.Email)
                        </td>
                    </tr>
                    <tr>
                        <td class="display-label">User Role:</td>
                        <td class="display-field">
                            @Html.DisplayFor(model => model.UserRole.Role)
                        </td>
                    </tr>
                </table>
            </fieldset>
            
            <br/>
            @Html.DisplayFor(model => model.Employee)

            <div align="right">
                <br/>
                @Html.ActionLink("Modificar", "Edit", new {  id=Model.UserId  }) |
                @Html.ActionLink("Volver", "Search")
            </div>
</fieldset>
